package nc.ui.so.addinvoicesk;

import java.awt.Container;

import nc.ui.trade.bsdelegate.BusinessDelegator;
import nc.vo.pub.SuperVO;

public class ClientBusinessDelegator extends BusinessDelegator {

	private Container parent = null;
	
	public ClientBusinessDelegator(Container parent ){
		this.parent = parent;
	}
	@Override
	public SuperVO[] queryHeadAllData(Class headClass, String strBillType,
			String strWhere) throws Exception {
		String where = " pk_sk_h in(select distinct so_addinvoice_sk_h.pk_sk_h from so_addinvoice_sk_h join so_addinvoice_sk_b on so_addinvoice_sk_h.pk_sk_h = so_addinvoice_sk_b.pk_sk_h " +
				" where 1=1 and isnull(so_addinvoice_sk_h.dr,0)=0 and isnull(so_addinvoice_sk_b.dr,0)=0 ";
		if(strWhere!=null && !"".equals(strWhere)){
			where = where +" and "+ strWhere;
		}
		where = where+")";
		return super.queryHeadAllData(headClass, strBillType, where);
	}
}
